package ${JarName}.entity;

import java.io.Serializable;

/**
 * 定义${ClassAliseName}实体
 */
public class ${ClassName}Entity implements Serializable {
	private static final long serialVersionUID = -8443497714033818376L;

<#list tableFields as item>
<#if item.dataType?? >
	<#if (item.dataType == "STRING" || item.dataType == "CHAR" || item.dataType == "TEXT") >
	
	/**
	 * ${item.aliasName}
	 */
	private String ${item.name?uncap_first};
	
	<#elseif (item.dataType == "INT16" || item.dataType == "INT" || item.dataType == "INT64" || item.dataType == "UINT16" || item.dataType == "UINT" || item.dataType == "UINT64") >
	/**
	 * ${item.aliasName}
	 */
	private Integer ${item.name?uncap_first};
	
	<#elseif (item.dataType == "DECIMAL" || item.dataType == "DOUBLE" || item.dataType == "SINGLE") >
	/**
	 * ${item.aliasName}
	 */
	private Double ${item.name?uncap_first};
	
	<#elseif item.dataType == "DATE">
	/**
	 * ${item.aliasName}
	 */
	private java.util.Date ${item.name?uncap_first};
	
	<#elseif item.dataType == "DATETIME">
	/**
	 * ${item.aliasName}
	 */
	private java.util.Date ${item.name?uncap_first};
	
	<#elseif item.dataType == "NODEFAULT">
	/**
	 * ${item.aliasName}
	 */
	private void ${item.name?uncap_first};
	
	<#elseif item.dataType == "BYTEARRAY">
	/**
	 * ${item.aliasName}
	 */
	private Byte[] ${item.name?uncap_first};
	
	<#elseif item.dataType == "BOOLEAN">
	/**
	 * ${item.aliasName}
	 */
	private Boolean ${item.name?uncap_first};
	
	<#else>
	 /**
	 * ${item.aliasName}
	 */
	private void ${item.name?uncap_first};
	
	</#if> 
<#else>
	/**
	 * ${item.aliasName}
	 */
	private void ${item.name?uncap_first};
</#if>
</#list> 

<#list tableFields as item>
<#if item.dataType?? >
	<#if (item.dataType == "STRING" || item.dataType == "CHAR" || item.dataType == "TEXT") >
	/**
	 * ${item.aliasName}
	 */
	public String get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(String value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif (item.dataType == "INT16" || item.dataType == "INT" || item.dataType == "INT64" || item.dataType == "UINT16" || item.dataType == "UINT" || item.dataType == "UINT64") >
	/**
	 * ${item.aliasName}
	 */
	public Integer get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(Integer value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif (item.dataType == "DECIMAL" || item.dataType == "DOUBLE" || item.dataType == "SINGLE") >
	/**
	 * ${item.aliasName}
	 */
	public Double get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(Double value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif item.dataType == "DATE">
	/**
	 * ${item.aliasName}
	 */
	public java.util.Date get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(java.util.Date value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif item.dataType == "DATETIME">
	/**
	 * ${item.aliasName}
	 */
	public java.util.Date get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(java.util.Date value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif item.dataType == "NODEFAULT">
	 /**
	 * ${item.aliasName}
	 */
	public void get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(void value) {
		this.${item.name?uncap_first} = value;
	}
	<#elseif item.dataType == "BYTEARRAY">
	 /**
	 * ${item.aliasName}
	 */
	public Byte[] get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(Byte[] value) {
		this.${item.name?uncap_first} = value;
	}
	
	<#elseif item.dataType == "BOOLEAN">
	/**
	 * ${item.aliasName}
	 */
	public Boolean get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(Boolean value) {
		this.${item.name?uncap_first} = value;
	}
	
	<#else>
	 /**
	 * ${item.aliasName}
	 */
	public void get${item.name?cap_first}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name?cap_first}(void value) {
		this.${item.name?uncap_first} = value;
	}
	</#if> 
<#else>
	/**
	 * ${item.aliasName}
	 */
	public void get${item.name}() {
		return ${item.name?uncap_first};
	}

	/**
	 * ${item.aliasName}
	 */
	public void set${item.name}(void value) {
		this.${item.name?uncap_first} = value;
	}
</#if>
</#list>
}